From: Jasper St. Pierre Date: Tue, 7 Aug 2012 18:07:34 +0000 (-0300) Subject: util: Don't pass too many arguments to GLib.spawn_async X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6214 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d11027e8c85c6ac5136acfe495f1fc9d9d8153ea;p=gnome-shell.git util: Don't pass too many arguments to GLib.spawn_async --- diff --git a/js/misc/util.js b/js/misc/util.js index 2f755cf96..fb936c941 100644 --- a/js/misc/util.js +++ b/js/misc/util.js @@ -84,7 +84,7 @@ function trySpawn(argv) try { [success, pid] = GLib.spawn_async(null, argv, null, GLib.SpawnFlags.SEARCH_PATH | GLib.SpawnFlags.DO_NOT_REAP_CHILD, - null, null); + null); } catch (err) { /* Rewrite the error in case of ENOENT */ if (err.matches(GLib.SpawnError, GLib.SpawnError.NOENT)) {